// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css';
import { Table, TableColumn } from 'element-ui';

// Vue.component(Table.name, Table);
Vue.use(Table);
Vue.use(TableColumn);

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import interceptor from './router/interceptor'
import verification from './assets/js/verification'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.prototype.veris = verification;
import 'babel-polyfill'
import './axios/index'
interceptor()
Vue.config.productionTip = false
import router from './router'
// router.afterEach((to,from,next) => {
//   window.scrollTo(0,0);
// })

import './assets/css/pretreatment.css'
import './assets/css/media.css'
import store from './store'
import App from './App'

import 'lib-flexible'

new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
